package cn.edu.scau.cmi.luotiansheng_chapter10;

import java.io.*;

public class Example10_4 {
	public static void main(String[] args) {
		int n=-1;
		byte[] a=new byte[100];
		try {
			File f=new File("Example10_4");
			FileInputStream f2=new FileInputStream(f);
			while((n=f2.read(a,0,100))!=-1) {
				String str=new String(a, 0, 100);
				System.out.println(str);
			}
			f2.close();
		}catch(IOException e) {
			System.out.println("File read Error"+e);
		}
	}
	
}
